<!DOCTYPE html>
<html>
<head>
<title>Welcome to HTTPS-PORTAL!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to HTTPS-PORTAL!</h1>

<% if domain.stage == 'production' %>
<p>
  Your site is available in HTTPS with a certificate issued by
  <a href="https://letsencrypt.org">Let's Encrypt</a>.
</p>
<% elsif domain.stage == 'staging' %>
<p>
  Your site is available in HTTPS with a certificate issued by
  <a href="https://letsencrypt.org">Let's Encrypt</a> staging server.
</p>
<p>

  This certificate is for testing your setup, and might not be trusted by your browser.

  To run the your website with Let's Encrypt production server, add
  `STAGE=production` to the container environment.
</p>
<% elsif domain.stage == 'local' %>
<p>
  Your site is available in HTTPS with a self-signed certificate.
</p>

<p>
  You can now run the same Docker compose file on your server with Let's Encrypt certificated.
  Don't forget to set up your DNS and use `STAGE=staging`!
</p>
<% end %>

<p>
  You can replace this page with your own static files, by mounting your own www
  root directory as a data volume at <strong><%= domain.www_root %></strong>.
</p>

<p>
  For more detailed information about static sites, check
  <a href="https://github.com/SteveLTN/https-portal#serving-static-sites">Serving
     Static Sites</a> section of the documents.
</p>

<p>
  Documents are available at
  <a href="https://github.com/SteveLTN/https-portal">https://github.com/SteveLTN/https-portal</a>.
</p>
</body>
</html>
